package com.wlts.wzy.KSOrderModule.entity;

import com.wlts.wzy.Base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 快手售后订单表
 * </p>
 *
 * @author zhiyong
 * @since 2021-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="KsOrdersRefund对象", description="快手售后订单表")
public class KsOrdersRefund extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    private Long oid;

    @ApiModelProperty(value = "退款单id")
    private Long refundId;

    @ApiModelProperty(value = "快手skuid")
    private Long skuId;

    @ApiModelProperty(value = "退款金额")
    private Long refundFee;

    @ApiModelProperty(value = "退款状态，枚举：[10, \"买家仅退款申请\"] [11, \"买家退货退款申请\"] [20, \"平台介入-买家仅退款申请\"] [21, \"平台介入-买家退货退款申请\"] [22,\"平台介入-已确认退货退款\"] [30,\"商品回寄信息待买家更新\"] [40,\"商品回寄信息待卖家确认\"] [50,\"退款执行中\"] [60,\"退款成功\"] [70,\"退款失败\"]")
    private Integer status;

    @ApiModelProperty(value = "买家快手id")
    private Long buyerId;

    @ApiModelProperty(value = "订单号")
    private Long sellerId;

    @ApiModelProperty(value = "卖家快手id")
    private Integer handlingWay;

    @ApiModelProperty(value = "退款类型，枚举：[0, \"未知\"] [1, \"买家申请退款\"] [2, \"卖家主动退款\"]")
    private Integer refundType;

    @ApiModelProperty(value = "退款原因，枚举值见https://open.kwaixiaodian.com/docs/dev?id=a6njGGa2IQ")
    private Integer refundReason;

    @ApiModelProperty(value = "退款描述")
    private String refundDesc;

    @ApiModelProperty(value = "退货申请时间")
    private Long submitTime;

    @ApiModelProperty(value = "快手端创建时间")
    private Long createTime;

    @ApiModelProperty(value = "快手端更新时间")
    private Long updateTime;

    @ApiModelProperty(value = "服务商skuid")
    private Long relSkuId;

    @ApiModelProperty(value = "sku编码")
    private String skuNick;

    @ApiModelProperty(value = "是不是平台推送商品的订单 0确定 1是 2不是")
    private Integer selfOrder;

    @ApiModelProperty(value = "lm退款状态 0未申请 1已申请 2已退款 3拒绝退款 4申请失败")
    private Integer lmRefundStatus;

    @ApiModelProperty(value = "lm退款返回信息")
    private String lmRefundMsg;


}
